<?php
namespace yan\health_check;
use Yii;
use DateTime;
class HealthCheck extends \yii\base\Action{
	public function run(){
		Yii::$app->getResponse()->setStatusCode(200);
		return Yii::$app->controller->asJson(['status'=>'healthy', 'timestamp'=>(new DateTime())->format(DateTime::ISO8601)]);
	}
}